/**
 * Created by dky14 on 2016/4/10.
 */
package xxy;

import java.util.Scanner;
        public class Main{
        public static void main(String[]args){
        int answer=0;
        System.out.println("输入两个整型数据：");
        Scanner s=new Scanner(System.in);
        Integer i=s.nextInt();
        Integer j=s.nextInt();
        System.out.println("请输入运算");
        String str=s.next();
        char op=str.charAt(0);
        switch(op)
        {
        case'+':
        answer=i+j;
        System.out.println("theansweris:"+answer);
        break;
        case'-':
        answer=i-j;
        System.out.println("theansweris:"+answer);
        break;
        case'*':
        answer=i*j;
        System.out.println("theansweris:"+answer);
        break;
        case'/':
        answer=i/j;
        System.out.println("theansweris:"+answer);
        break;
default:
        System.out.println("输入错误！");
        break;
        }
        }
        }